<template>
  <div class="header-nav">
    <div class="container">
      <!-- <el-row :gutter="10" v-if="!isMobile">
        <el-col :xs="0" :sm="1" />
        <el-col :xs="12" :sm="11" class="header-left">
          <date-info />
          <location-info />
        </el-col>
        <el-col :xs="12" :sm="11" class="header-right">
          <el-link :underline="false">
            <div class="help">帮助中心</div>
          </el-link>
          <user-info />
        </el-col>
        <el-col :xs="0" :sm="1" />
      </el-row> -->
      <nav-bar v-if="!isMobile" />
      <div class="header-title" v-else>
        <img class="header-title-logo" src="@/assets/imgs/logo.png" alt="logo" />
        <div class="header-title-slogo">专业、准确、及时和全面的科研导航</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import NavBar from '@/components/header-nav/NavBar.vue'
// import DateInfo from '@/components/header-nav/DateInfo.vue'
// import LocationInfo from '@/components/header-nav/LocationInfo.vue'
// import UserInfo from '@/components/header-nav/UserInfo.vue'

const isMobile = window.isMobile
</script>
<style lang="scss" scoped>
.header-nav {
  position: relative;
  width: 100%;
  height: 50px;
  background-color: #f5f7fa;
  line-height: 50px;
  font-size: 16px;
  color: #777777;

  .container {
    max-width: 1190px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .header-nav {
    height: 35px;
    line-height: 30px;
    padding-top: 2px;

    .header-title {
      display: flex;
      flex-wrap: nowrap;
      flex-direction: row;
      justify-content: space-between;

      .header-title-logo {
        height: 100%;
        width: 110px;
        margin-left: 10px;
      }

      .header-title-slogo {
        font-size: 16px;
        font-weight: 700;
        line-height: 32px;
        margin-right: 10px;
        color: #777777;
        white-space: nowrap;
      }
    }
  }
}
</style>
